<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>订单更改</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="css/popDrag.css">
		<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/css/manage.css}" rel="stylesheet">
		<script src="js/vue.js"></script>
		<script src="js/PopDrag.js"></script>
		<script src="js/jquery.min.js"></script>
		<script>
		  var t = null;
		  t = setTimeout(time, 1000); //開始运行
		  function time() {
		    clearTimeout(t); //清除定时器
		    dt = new Date();
		    var y = dt.getFullYear();
		    var mt = dt.getMonth() + 1;
		    var day = dt.getDate();
		    var h = dt.getHours(); //获取时
		    var m = dt.getMinutes(); //获取分
		    var s = dt.getSeconds(); //获取秒
		    document.querySelector(".showTime").innerHTML =
		      y +
		      "年" +
		      mt +
		      "月" +
		      day +
		      "日" +
		      h +
		      "时" +
		      m +
		      "分" +
		      s +
		      "秒";
		    t = setTimeout(time, 1000); //设定定时器，循环运行
		  }
		</script>
	</head>
	<body onload="time()">
		<div class="div1">
			<div class="logo">
				<a href="index.html"></a>
			</div>
			<div class="welcome">
				<h>欢迎进行订单修改</h>
			</div>
		</div>
		<div class="bl">
			<div class="showTime"></div>
		</div>
		<div>
			<div class="daohang">
				<li class="d1"><button class="btn1" onclick="window.location.href='/commoditymanage'">商品管理</button></li>
				<li class="d1"><button class="btn1" onclick="window.location.href='/ordermanage'">订单管理</button></li>
			</div>
			<div class="main2">
				<form action="/orderupdate" method="post">
					<table class="table table-striped table-bordered table-hover text-center">
						<thead>
							<tr style="text-align:center">
								<th>订单编号</th>
								<th>地址</th>
								<th>电话</th>
							</tr>
							<tr th:each="order:${order}">
								<td th:text="${order.orderno}"></td>
								<td th:text="${order.location}"></td>
								<td th:text="${order.tel}"></td>
							</tr>
							<tr>
								<td><input type="text" name="orderno" th:value="${order.orderno}" readonly="readonly" style="border: 0;text-align: center;"/></td>
								<td><input type="text" placeholder="请输入修改值" name="location"/></td>
								<td><input type="text" placeholder="请输入修改值" name="tel"/></td>
							</tr>
						</thead>
					</table>
					<input id='ok' type="submit" class="btn btn-primary" value="        确    认        " />
					<input id='cancel' type="button" class="btn btn-danger" onclick="goBack()" value="        取    消        " />
				</form>
			</div>
		</div>
	</body>
	<script>
		function goBack(){
			window.history.back(-1);
		}
	</script>
</html>
